import App from './App'

// #ifndef VUE3
import Vue from 'vue'

import uView from "@/uni_modules/uview-ui"  // 引入uView
Vue.use(uView)  // 使用uview
import store from '@/store/index.js'  // 引入store
import api from "@/utils/api.js"  // 引入api
import mixin from "@/common/mixin.js" // 引入全局混入
Vue.mixin(mixin)
Vue.prototype.$api = api

import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App,
	// 将 store 挂载到 Vue 实例上
	store
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif